|
|
Hello. I have a problem regarding the MegaPOV feature, 'trace' and
surface normals detected by it. I want to rotate objects according to
the surface normal, to get boxes or other objects to stick out
perpendicular from slanted surfaces. Here is what I tried, using
information for the surface normal from trace:
rotate < Norm.z*90, 0, Norm.x*90 >
In my code the rays are shot straight down onto an object. Boxes are
placed onto the surface of the object and rotated to near accuracy,
but.... The problem is that they aren't rotated precisely! Sure, on the
more horizontal parts boxes are straight up and down, and sure, on the
vertical parts of the object the boxes are placed horizonally...but all
the ones in between down remain perpendicular to the objects' surface! I
don't get it. Is it a bug with the MegaPOV code? Is it a bug wth my own
code?
Thanks in advance. I'll post code and an image describing the problem
later, if anyone who is willing to help needs to know exactly what it
looks like.
~Sam
Post a reply to this message
|
|